package com.jiantong.user.impl.dao;

import com.jiantong.user.model.DepartmentExtend;
import io.terminus.common.mysql.dao.MyBatisDao;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * Created by mz on 11/5/17.
 *
 */
@Repository
public class DepartmentExtendDao extends MyBatisDao<DepartmentExtend>{

    /**
     * 根据factoryOrPointId 查询 DepartmentExtend
     * @param map 屠宰点  或 申报点的   id
     * @return DepartmentExtend
     */
    public DepartmentExtend findDepartmentExtendBy(Map<String ,Object> map){
        return getSqlSession().selectOne(sqlId("findByFactoryOrPointId"),map);
    }
}
